asMap method Null safety

Map<String, dynamic> asMap()

Implementation

Map<String, dynamic> asMap() {
  return tables.map((key, value) => MapEntry(key, value.asMap()));
}