DatastoreStorageSummary.fromJson constructor

DatastoreStorageSummary.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DatastoreStorageSummary.fromJson(Map<String, dynamic> json) {
  return DatastoreStorageSummary(
    customerManagedS3: json['customerManagedS3'] != null
        ? CustomerManagedDatastoreS3StorageSummary.fromJson(
            json['customerManagedS3'] as Map<String, dynamic>)
        : null,
    serviceManagedS3: json['serviceManagedS3'] != null
        ? ServiceManagedDatastoreS3StorageSummary.fromJson(
            json['serviceManagedS3'] as Map<String, dynamic>)
        : null,
  );
}