StorageBucketInfo.fromJson constructor
StorageBucketInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StorageBucketInfo.fromJson(Map<String, dynamic> json) {
return StorageBucketInfo(
bucket: StorageBucket.fromJson(json['bucket'] as Map<String, dynamic>),
id: json['id'] as String,
expiration: network.TimeSinceEpoch.fromJson(json['expiration'] as num),
quota: json['quota'] as num,
persistent: json['persistent'] as bool? ?? false,
durability:
StorageBucketsDurability.fromJson(json['durability'] as String),
);
}