toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var key = this.key;
  var name = this.name;
  var url = this.url;

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