DatastoreStorage.fromJson constructor

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

Implementation

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