mapFromJson static method

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

Implementation

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