mapFromMedia function Null safety

Map<String, String> mapFromMedia(
  1. Media media
)

Implementation

Map<String, String> mapFromMedia(Media media) {
  return <String, String>{TYPE: media.mediaType.asString, URL: media.url};
}