fromJson static method

PostBucketRequest fromJson(
  1. dynamic value
)

Returns a new PostBucketRequest instance and imports

Implementation

// ignore: prefer_constructors_over_static_methods
static PostBucketRequest fromJson(dynamic value) {
  final json = value.cast<String, dynamic>();
  return PostBucketRequest(
    orgID: mapValueOfType<String>(json, r'orgID'),
    name: mapValueOfType<String>(json, r'name'),
    description: mapValueOfType<String>(json, r'description'),
    rp: mapValueOfType<String>(json, r'rp'),
    retentionRules: RetentionRule.listFromJson(json[r'retentionRules']),
    schemaType: json[r'schemaType'] == null
        ? null
        : SchemaType.fromJson(json[r'schemaType']),
  );
}