$DeploymentOccurrence.fromJson constructor Null safety

$DeploymentOccurrence.fromJson(
  1. Map _json
)

Implementation

$DeploymentOccurrence.fromJson(core.Map _json)
    : this(
        address: _json.containsKey('address')
            ? _json['address'] as core.String
            : null,
        config: _json.containsKey('config')
            ? _json['config'] as core.String
            : null,
        deployTime: _json.containsKey('deployTime')
            ? _json['deployTime'] as core.String
            : null,
        platform: _json.containsKey('platform')
            ? _json['platform'] as core.String
            : null,
        resourceUri: _json.containsKey('resourceUri')
            ? (_json['resourceUri'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        undeployTime: _json.containsKey('undeployTime')
            ? _json['undeployTime'] as core.String
            : null,
        userEmail: _json.containsKey('userEmail')
            ? _json['userEmail'] as core.String
            : null,
      );