Run.fromJson constructor

Run.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Run.fromJson(Map<String, dynamic> json) {
  return Run(
    appUpload: json['appUpload'] as String?,
    arn: json['arn'] as String?,
    billingMethod: (json['billingMethod'] as String?)?.toBillingMethod(),
    completedJobs: json['completedJobs'] as int?,
    counters: json['counters'] != null
        ? Counters.fromJson(json['counters'] as Map<String, dynamic>)
        : null,
    created: timeStampFromJson(json['created']),
    customerArtifactPaths: json['customerArtifactPaths'] != null
        ? CustomerArtifactPaths.fromJson(
            json['customerArtifactPaths'] as Map<String, dynamic>)
        : null,
    deviceMinutes: json['deviceMinutes'] != null
        ? DeviceMinutes.fromJson(
            json['deviceMinutes'] as Map<String, dynamic>)
        : null,
    devicePoolArn: json['devicePoolArn'] as String?,
    deviceSelectionResult: json['deviceSelectionResult'] != null
        ? DeviceSelectionResult.fromJson(
            json['deviceSelectionResult'] as Map<String, dynamic>)
        : null,
    eventCount: json['eventCount'] as int?,
    jobTimeoutMinutes: json['jobTimeoutMinutes'] as int?,
    locale: json['locale'] as String?,
    location: json['location'] != null
        ? Location.fromJson(json['location'] as Map<String, dynamic>)
        : null,
    message: json['message'] as String?,
    name: json['name'] as String?,
    networkProfile: json['networkProfile'] != null
        ? NetworkProfile.fromJson(
            json['networkProfile'] as Map<String, dynamic>)
        : null,
    parsingResultUrl: json['parsingResultUrl'] as String?,
    platform: (json['platform'] as String?)?.toDevicePlatform(),
    radios: json['radios'] != null
        ? Radios.fromJson(json['radios'] as Map<String, dynamic>)
        : null,
    result: (json['result'] as String?)?.toExecutionResult(),
    resultCode: (json['resultCode'] as String?)?.toExecutionResultCode(),
    seed: json['seed'] as int?,
    skipAppResign: json['skipAppResign'] as bool?,
    started: timeStampFromJson(json['started']),
    status: (json['status'] as String?)?.toExecutionStatus(),
    stopped: timeStampFromJson(json['stopped']),
    testSpecArn: json['testSpecArn'] as String?,
    totalJobs: json['totalJobs'] as int?,
    type: (json['type'] as String?)?.toTestType(),
    webUrl: json['webUrl'] as String?,
  );
}