toMap method Null safety

Map<String, String> toMap()

Implementation

Map<String, String> toMap() {
  return {
    "data": data,
    "mimeType": mimeType,
    "encoding": encoding,
    "baseUrl": baseUrl,
    "historyUrl": historyUrl
  };
}