SchemaTable.fromMap constructor

SchemaTable.fromMap(
  1. Map<String, dynamic> map
)

Creates an instance of this type from map.

This map is typically generated from asMap;

Implementation

SchemaTable.fromMap(Map<String, dynamic> map) {
  name = map["name"] as String?;
  _columns = (map["columns"] as List<Map<String, dynamic>>)
      .map((c) => SchemaColumn.fromMap(c))
      .toList();
  uniqueColumnSet = (map["unique"] as List?)?.cast();
}