asMap method Null safety

Map<String, dynamic> asMap()

Implementation

Map<String, dynamic> asMap() {
  return {
    'tableName': tableName,
    'className': className,
    'fields': fields.map((e) => e.asMap()).toList(),
    'indexes': indexes.map((e) => e.asMap()).toList(),
    'uniqueIndexes': uniqueIndexes.map((e) => e.asMap()).toList()
  };
}