Account.fromJson constructor

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

Implementation

factory Account.fromJson(Map<String, dynamic> json) {
  return Account(
    arn: json['Arn'] as String?,
    email: json['Email'] as String?,
    id: json['Id'] as String?,
    joinedMethod: (json['JoinedMethod'] as String?)?.toAccountJoinedMethod(),
    joinedTimestamp: timeStampFromJson(json['JoinedTimestamp']),
    name: json['Name'] as String?,
    status: (json['Status'] as String?)?.toAccountStatus(),
  );
}