Enterprise.fromJson constructor
Enterprise.fromJson(
- Map json_
Implementation
Enterprise.fromJson(core.Map json_)
: this(
appAutoApprovalEnabled: json_.containsKey('appAutoApprovalEnabled')
? json_['appAutoApprovalEnabled'] as core.bool
: null,
contactInfo: json_.containsKey('contactInfo')
? ContactInfo.fromJson(
json_['contactInfo'] as core.Map<core.String, core.dynamic>)
: null,
enabledNotificationTypes:
json_.containsKey('enabledNotificationTypes')
? (json_['enabledNotificationTypes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
enterpriseDisplayName: json_.containsKey('enterpriseDisplayName')
? json_['enterpriseDisplayName'] as core.String
: null,
logo: json_.containsKey('logo')
? ExternalData.fromJson(
json_['logo'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
primaryColor: json_.containsKey('primaryColor')
? json_['primaryColor'] as core.int
: null,
pubsubTopic: json_.containsKey('pubsubTopic')
? json_['pubsubTopic'] as core.String
: null,
signinDetails: json_.containsKey('signinDetails')
? (json_['signinDetails'] as core.List)
.map((value) => SigninDetail.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
termsAndConditions: json_.containsKey('termsAndConditions')
? (json_['termsAndConditions'] as core.List)
.map((value) => TermsAndConditions.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);