fromJson static method

PatchBucketRequest fromJson(
  1. dynamic value
)

Returns a new PatchBucketRequest instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static PatchBucketRequest fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return PatchBucketRequest(
    name: mapValueOfType<String>(json, r'name'),
    description: mapValueOfType<String>(json, r'description'),
    retentionRules: PatchRetentionRule.listFromJson(json[r'retentionRules']),
  );
}