Company.fromJson constructor

Company.fromJson(
  1. Map json_
)

Implementation

Company.fromJson(core.Map json_)
    : this(
        adminEmails: json_.containsKey('adminEmails')
            ? (json_['adminEmails'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        companyId: json_.containsKey('companyId')
            ? json_['companyId'] as core.String
            : null,
        companyName: json_.containsKey('companyName')
            ? json_['companyName'] as core.String
            : null,
        googleWorkspaceAccount: json_.containsKey('googleWorkspaceAccount')
            ? GoogleWorkspaceAccount.fromJson(json_['googleWorkspaceAccount']
                as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ownerEmails: json_.containsKey('ownerEmails')
            ? (json_['ownerEmails'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        skipWelcomeEmail: json_.containsKey('skipWelcomeEmail')
            ? json_['skipWelcomeEmail'] as core.bool
            : null,
        termsStatus: json_.containsKey('termsStatus')
            ? json_['termsStatus'] as core.String
            : null,
      );