Job.fromJson constructor

Job.fromJson(
  1. Map json_
)

Implementation

Job.fromJson(core.Map json_)
    : this(
        configuration: json_.containsKey('configuration')
            ? JobConfiguration.fromJson(
                json_['configuration'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        jobCreationReason: json_.containsKey('jobCreationReason')
            ? JobCreationReason.fromJson(json_['jobCreationReason']
                as core.Map<core.String, core.dynamic>)
            : null,
        jobReference: json_.containsKey('jobReference')
            ? JobReference.fromJson(
                json_['jobReference'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        principalSubject: json_.containsKey('principal_subject')
            ? json_['principal_subject'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        statistics: json_.containsKey('statistics')
            ? JobStatistics.fromJson(
                json_['statistics'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? JobStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        userEmail: json_.containsKey('user_email')
            ? json_['user_email'] as core.String
            : null,
      );