toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
jsonObject['field_id'] = fieldId;
if (directive == Limiting.required) {
jsonObject['directive'] = 'required';
} else {
jsonObject['directive'] = 'preferred';
}
return jsonObject;
}