DescribeLocationSmbResponse.fromJson constructor

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

Implementation

factory DescribeLocationSmbResponse.fromJson(Map<String, dynamic> json) {
  return DescribeLocationSmbResponse(
    agentArns: (json['AgentArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    creationTime: timeStampFromJson(json['CreationTime']),
    domain: json['Domain'] as String?,
    locationArn: json['LocationArn'] as String?,
    locationUri: json['LocationUri'] as String?,
    mountOptions: json['MountOptions'] != null
        ? SmbMountOptions.fromJson(
            json['MountOptions'] as Map<String, dynamic>)
        : null,
    user: json['User'] as String?,
  );
}