SMBFileShareInfo.fromJson constructor
SMBFileShareInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SMBFileShareInfo.fromJson(Map<String, dynamic> json) {
return SMBFileShareInfo(
accessBasedEnumeration: json['AccessBasedEnumeration'] as bool?,
adminUserList: (json['AdminUserList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
auditDestinationARN: json['AuditDestinationARN'] as String?,
authentication: json['Authentication'] as String?,
cacheAttributes: json['CacheAttributes'] != null
? CacheAttributes.fromJson(
json['CacheAttributes'] as Map<String, dynamic>)
: null,
caseSensitivity:
(json['CaseSensitivity'] as String?)?.toCaseSensitivity(),
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?,
invalidUserList: (json['InvalidUserList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
kMSEncrypted: json['KMSEncrypted'] as bool?,
kMSKey: json['KMSKey'] as String?,
locationARN: json['LocationARN'] as String?,
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?,
sMBACLEnabled: json['SMBACLEnabled'] as bool?,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
validUserList: (json['ValidUserList'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}