EFSVolumeConfiguration.fromJson constructor

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

Implementation

factory EFSVolumeConfiguration.fromJson(Map<String, dynamic> json) {
  return EFSVolumeConfiguration(
    fileSystemId: json['fileSystemId'] as String,
    authorizationConfig: json['authorizationConfig'] != null
        ? EFSAuthorizationConfig.fromJson(
            json['authorizationConfig'] as Map<String, dynamic>)
        : null,
    rootDirectory: json['rootDirectory'] as String?,
    transitEncryption:
        (json['transitEncryption'] as String?)?.toEFSTransitEncryption(),
    transitEncryptionPort: json['transitEncryptionPort'] as int?,
  );
}