Account.fromJson constructor

Account.fromJson(
  1. Map json_
)

Implementation

Account.fromJson(core.Map json_)
    : this(
        accountName: json_.containsKey('accountName')
            ? json_['accountName'] as core.String
            : null,
        accountNumber: json_.containsKey('accountNumber')
            ? json_['accountNumber'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        organizationInfo: json_.containsKey('organizationInfo')
            ? OrganizationInfo.fromJson(json_['organizationInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        permissionLevel: json_.containsKey('permissionLevel')
            ? json_['permissionLevel'] as core.String
            : null,
        primaryOwner: json_.containsKey('primaryOwner')
            ? json_['primaryOwner'] as core.String
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        verificationState: json_.containsKey('verificationState')
            ? json_['verificationState'] as core.String
            : null,
        vettedState: json_.containsKey('vettedState')
            ? json_['vettedState'] as core.String
            : null,
      );