FleetError.fromJson constructor

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

Implementation

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