toJson method

Map<String, Object?> toJson()

Implementation

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

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