Case.fromJson constructor

Case.fromJson(
  1. Map json_
)

Implementation

Case.fromJson(core.Map json_)
    : this(
        classification: json_.containsKey('classification')
            ? CaseClassification.fromJson(json_['classification']
                as core.Map<core.String, core.dynamic>)
            : null,
        contactEmail: json_.containsKey('contactEmail')
            ? json_['contactEmail'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? Actor.fromJson(
                json_['creator'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        escalated: json_.containsKey('escalated')
            ? json_['escalated'] as core.bool
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.String
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subscriberEmailAddresses:
            json_.containsKey('subscriberEmailAddresses')
                ? (json_['subscriberEmailAddresses'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        testCase: json_.containsKey('testCase')
            ? json_['testCase'] as core.bool
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );