JobError.fromJson constructor

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

Implementation

factory JobError.fromJson(Map<String, dynamic> json) {
  return JobError(
    code: (json['Code'] as String).toCode(),
    message: json['Message'] as String,
    details: json['Details'] != null
        ? Details.fromJson(json['Details'] as Map<String, dynamic>)
        : null,
    limitName: (json['LimitName'] as String?)?.toJobErrorLimitName(),
    limitValue: json['LimitValue'] as double?,
    resourceId: json['ResourceId'] as String?,
    resourceType:
        (json['ResourceType'] as String?)?.toJobErrorResourceTypes(),
  );
}