toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    'metadataType': metadataType.value,
    'seriesTitle': seriesTitle,
    'season': season,
    'episode': episode,
    'images': images?.map((x) => x.toMap()).toList(),
    'creationDate': originalAirDate?.millisecondsSinceEpoch,
  };
}