mapFromJson static method

Map<String, PageMeta?> mapFromJson(
  1. dynamic json
)

Implementation

static Map<String, PageMeta?> mapFromJson(dynamic json) {
  final map = <String, PageMeta?>{};
  if (json is Map && json.isNotEmpty) {
    json
        .cast<String, dynamic>()
        .forEach((key, dynamic value) => map[key] = PageMeta.fromJson(value));
  }
  return map;
}