mapListFromJson static method

Map<String, List<DocumentPagination>> mapListFromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static Map<String, List<DocumentPagination>> mapListFromJson(
    Map<String, dynamic>? json) {
  if (json == null) {
    return <String, List<DocumentPagination>>{};
  }

  return json.map((key, value) {
    return MapEntry<String, List<DocumentPagination>>(
        key, DocumentPagination.listFromJson(value));
  });
}