fromJson static method
Returns a new Bucket instance and imports
Implementation
// ignore: prefer_constructors_over_static_methods
static Bucket fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return Bucket(
links:
json[r'links'] == null ? null : BucketLinks.fromJson(json[r'links']),
id: mapValueOfType<String>(json, r'id'),
type: BucketTypeEnum.fromJson(json[r'type']),
name: mapValueOfType<String>(json, r'name'),
description: mapValueOfType<String>(json, r'description'),
orgID: mapValueOfType<String>(json, r'orgID'),
rp: mapValueOfType<String>(json, r'rp'),
schemaType: json[r'schemaType'] == null
? null
: SchemaType.fromJson(json[r'schemaType']),
createdAt: mapDateTime(json, r'createdAt', ''),
updatedAt: mapDateTime(json, r'updatedAt', ''),
retentionRules: RetentionRule.listFromJson(json[r'retentionRules']),
labels: Label.listFromJson(json[r'labels']),
);
}