toMap method

Map<String, dynamic> toMap()

Converts this configuration to a map

Implementation

Map<String, dynamic> toMap() {
  return {
    'usage': usage.index,
    'contentType': contentType.index,
    'canDuck': canDuck,
    'canPause': canPause,
    'handleBecomingNoisy': handleBecomingNoisy,
  };
}