ColumnIndex.fromMap constructor
ColumnIndex.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ColumnIndex.fromMap(
Map<String, dynamic> map,
) {
map = {
'\$id': "",
'\$createdAt': "",
'\$updatedAt': "",
'key': "",
'description': "",
'type': "",
'status': "",
'error': "",
'columns': [],
'lengths': [],
...map,
};
return ColumnIndex(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
key: map['key'].toString(),
description: map['description'].toString(),
type: map['type'].toString(),
status: map['status'].toString(),
error: map['error'].toString(),
columns: List.from(map['columns'] ?? []),
lengths: List.from(map['lengths'] ?? []),
orders: List.from(map['orders'] ?? []),
);
}