RowList.fromMap constructor

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

Implementation

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

  return RowList(
    total: map['total'],
    rows: List<Row>.from(
      map['rows'].map((p) => Row.fromMap(p)),
    ),
  );
}