ListedUser.fromJson constructor

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

Implementation

factory ListedUser.fromJson(Map<String, dynamic> json) {
  return ListedUser(
    arn: json['Arn'] as String,
    homeDirectory: json['HomeDirectory'] as String?,
    homeDirectoryType:
        (json['HomeDirectoryType'] as String?)?.toHomeDirectoryType(),
    role: json['Role'] as String?,
    sshPublicKeyCount: json['SshPublicKeyCount'] as int?,
    userName: json['UserName'] as String?,
  );
}