JobListJobs.fromJson constructor

JobListJobs.fromJson(
  1. Map json_
)

Implementation

JobListJobs.fromJson(core.Map json_)
    : this(
        configuration: json_.containsKey('configuration')
            ? JobConfiguration.fromJson(
                json_['configuration'] as core.Map<core.String, core.dynamic>)
            : null,
        errorResult: json_.containsKey('errorResult')
            ? ErrorProto.fromJson(
                json_['errorResult'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : 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,
        state:
            json_.containsKey('state') ? json_['state'] 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,
      );