toJson method
Implementation
Map<String, dynamic> toJson() {
// ignore: unnecessary_cast
return {
'isInstance': isInstance,
'name': name,
if (importableType != null) 'importableType': importableType!.toJson(),
} as Map<String, dynamic>;
}