ResourceError.fromJson constructor

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

Implementation

factory ResourceError.fromJson(Map<String, dynamic> json) {
  return ResourceError(
    errorCode: (json['ErrorCode'] as String?)?.toFleetErrorCode(),
    errorMessage: json['ErrorMessage'] as String?,
    errorTimestamp: timeStampFromJson(json['ErrorTimestamp']),
  );
}