toMap method

Map<String, Map<String, dynamic>> toMap()

Converts this model to the Map expected by Flutter.

Implementation

Map<String, Map<String, dynamic>> toMap() {
  return {
    'audio': audio.toMap(),
    'video': video.toMap(),
  };
}