toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json['policyId'] = policyId;
if (policyName != null) {
_json['policyName'] = policyName;
}
_json['effect'] = v1EffectToJson(effect);
_json['conditionMatched'] = conditionMatched;
if (consensusMet != null) {
_json['consensusMet'] = consensusMet;
}
_json['result'] = v1SimulationPolicyResultToJson(result);
if (shortCircuited != null) {
_json['shortCircuited'] = shortCircuited;
}
if (error != null) {
_json['error'] = error;
}
return _json;
}