AccessPointDescription.fromJson constructor

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

Implementation

factory AccessPointDescription.fromJson(Map<String, dynamic> json) {
  return AccessPointDescription(
    accessPointArn: json['AccessPointArn'] as String?,
    accessPointId: json['AccessPointId'] as String?,
    clientToken: json['ClientToken'] as String?,
    fileSystemId: json['FileSystemId'] as String?,
    lifeCycleState: (json['LifeCycleState'] as String?)?.toLifeCycleState(),
    name: json['Name'] as String?,
    ownerId: json['OwnerId'] as String?,
    posixUser: json['PosixUser'] != null
        ? PosixUser.fromJson(json['PosixUser'] as Map<String, dynamic>)
        : null,
    rootDirectory: json['RootDirectory'] != null
        ? RootDirectory.fromJson(
            json['RootDirectory'] as Map<String, dynamic>)
        : null,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}