toJson method

Map<String, dynamic> toJson()

Implementation

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