toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (timestampMs != null) {
_json['timestampMs'] = timestampMs;
}
if (organizationId != null) {
_json['organizationId'] = organizationId;
}
_json['policyName'] = policyName;
_json['effect'] = v1EffectToJson(effect);
if (condition != null) {
_json['condition'] = condition;
}
if (consensus != null) {
_json['consensus'] = consensus;
}
if (notes != null) {
_json['notes'] = notes;
}
return _json;
}