toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var value = this.value;
  var representation = this.representation;

  final json = <String, Object?>{};
  json[r'value'] = value;
  json[r'representation'] = representation.value;
  return json;
}