ComponentCondition.fromJson constructor
Creates a ComponentCondition from JSON data.
Implementation
factory ComponentCondition.fromJson(Map<String, dynamic> json) {
final tempErrorJson = json['error'];
final tempMessageJson = json['message'];
final tempStatusJson = json['status'];
final tempTypeJson = json['type'];
final String? tempError = tempErrorJson;
final String? tempMessage = tempMessageJson;
final String tempStatus = tempStatusJson;
final String tempType = tempTypeJson;
return ComponentCondition(
error: tempError,
message: tempMessage,
status: tempStatus,
type: tempType,
);
}