CreateAccountStatus.fromJson constructor

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

Implementation

factory CreateAccountStatus.fromJson(Map<String, dynamic> json) {
  return CreateAccountStatus(
    accountId: json['AccountId'] as String?,
    accountName: json['AccountName'] as String?,
    completedTimestamp: timeStampFromJson(json['CompletedTimestamp']),
    failureReason:
        (json['FailureReason'] as String?)?.toCreateAccountFailureReason(),
    govCloudAccountId: json['GovCloudAccountId'] as String?,
    id: json['Id'] as String?,
    requestedTimestamp: timeStampFromJson(json['RequestedTimestamp']),
    state: (json['State'] as String?)?.toCreateAccountState(),
  );
}