FileSystemDescription.fromJson constructor

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

Implementation

factory FileSystemDescription.fromJson(Map<String, dynamic> json) {
  return FileSystemDescription(
    creationTime:
        nonNullableTimeStampFromJson(json['CreationTime'] as Object),
    creationToken: json['CreationToken'] as String,
    fileSystemId: json['FileSystemId'] as String,
    lifeCycleState: (json['LifeCycleState'] as String).toLifeCycleState(),
    numberOfMountTargets: json['NumberOfMountTargets'] as int,
    ownerId: json['OwnerId'] as String,
    performanceMode: (json['PerformanceMode'] as String).toPerformanceMode(),
    sizeInBytes:
        FileSystemSize.fromJson(json['SizeInBytes'] as Map<String, dynamic>),
    tags: (json['Tags'] as List)
        .whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
    encrypted: json['Encrypted'] as bool?,
    fileSystemArn: json['FileSystemArn'] as String?,
    kmsKeyId: json['KmsKeyId'] as String?,
    name: json['Name'] as String?,
    provisionedThroughputInMibps:
        json['ProvisionedThroughputInMibps'] as double?,
    throughputMode: (json['ThroughputMode'] as String?)?.toThroughputMode(),
  );
}