toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson({ClientUriConverter? clientUriConverter}) {
var result = <String, Object>{};
result['kind'] = kind.toJson(clientUriConverter: clientUriConverter);
result['name'] = name;
var location = this.location;
if (location != null) {
result['location'] = location.toJson(
clientUriConverter: clientUriConverter,
);
}
result['flags'] = flags;
var parameters = this.parameters;
if (parameters != null) {
result['parameters'] = parameters;
}
var returnType = this.returnType;
if (returnType != null) {
result['returnType'] = returnType;
}
var typeParameters = this.typeParameters;
if (typeParameters != null) {
result['typeParameters'] = typeParameters;
}
var aliasedType = this.aliasedType;
if (aliasedType != null) {
result['aliasedType'] = aliasedType;
}
return result;
}