toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (identifier != null) {
    json[r'identifier'] = identifier;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  return json;
}