ChannelStorage.fromJson constructor

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

Implementation

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