toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  if (value != null) {
    json[r'value'] = value;
  }
  if (representation != null) {
    json[r'representation'] = representation;
  }
  return json;
}