toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts the custom field value to a JSON-compatible representation.

Implementation

@override
Map<String, dynamic> toJson() {
  return {'type': 'int', 'value': value};
}