toJson method
override
Implementation
@override
Map<String, dynamic> toJson() => <String, Object?>{
...super.toJson(),
'type': type,
'name': name ?? '',
'library': library?.toJson(),
if (location?.toJson() case final locationValue?)
'location': locationValue,
if (typeParameters?.map((f) => f.toJson()).toList()
case final typeParametersValue?)
'typeParameters': typeParametersValue,
};