toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var json = super.toJson();
  json['name'] = name;
  json['type'] = type.toShortString();
  if (ownerId != null) {
    json['ownerId'] = ownerId!.toJson();
  }
  if (configuration != null) {
    json['configuration'] = configuration;
  }
  if (externalId != null) {
    json['externalId'] = externalId!.toJson();
  }
  return json;
}