TableList.fromMap constructor

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

Implementation

factory TableList.fromMap(
  Map<String, dynamic> map,
) {
  map = {
    'total': 0,
    'tables': [],
    ...map,
  };

  return TableList(
    total: map['total'],
    tables: List<Table>.from(
      map['tables'].map((p) => Table.fromMap(p)),
    ),
  );
}