TableDeclaration.fromMap constructor Null safety

TableDeclaration.fromMap(
  1. Map map
)

Implementation

TableDeclaration.fromMap(Map map) {
  tableName = map['tableName'] as String;
  className = map['className'] as String;
  fields = map['fields']
      .map((e) => FieldDeclaration.fromMap(e))
      .toList()
      .cast<FieldDeclaration>();
  indexes = map['indexes']
      .map((e) => IndexDeclaration.fromMap(e))
      .toList()
      .cast<IndexDeclaration>();
  uniqueIndexes = map['uniqueIndexes']
      .map((e) => UniqueDeclaration.fromMap(e))
      .toList()
      .cast<UniqueDeclaration>();
}