NFSFileShareInfo.fromJson constructor
NFSFileShareInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NFSFileShareInfo.fromJson(Map<String, dynamic> json) {
return NFSFileShareInfo(
cacheAttributes: json['CacheAttributes'] != null
? CacheAttributes.fromJson(
json['CacheAttributes'] as Map<String, dynamic>)
: null,
clientList: (json['ClientList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
defaultStorageClass: json['DefaultStorageClass'] as String?,
fileShareARN: json['FileShareARN'] as String?,
fileShareId: json['FileShareId'] as String?,
fileShareName: json['FileShareName'] as String?,
fileShareStatus: json['FileShareStatus'] as String?,
gatewayARN: json['GatewayARN'] as String?,
guessMIMETypeEnabled: json['GuessMIMETypeEnabled'] as bool?,
kMSEncrypted: json['KMSEncrypted'] as bool?,
kMSKey: json['KMSKey'] as String?,
locationARN: json['LocationARN'] as String?,
nFSFileShareDefaults: json['NFSFileShareDefaults'] != null
? NFSFileShareDefaults.fromJson(
json['NFSFileShareDefaults'] as Map<String, dynamic>)
: null,
notificationPolicy: json['NotificationPolicy'] as String?,
objectACL: (json['ObjectACL'] as String?)?.toObjectACL(),
path: json['Path'] as String?,
readOnly: json['ReadOnly'] as bool?,
requesterPays: json['RequesterPays'] as bool?,
role: json['Role'] as String?,
squash: json['Squash'] as String?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}