toJson method
Implementation
Map<String, dynamic> toJson() {
// ignore: unnecessary_cast
return {
'type': type,
'instanceName': instanceName,
'paramName': paramName,
'isFactoryParam': isFactoryParam,
'isPositional': isPositional,
} as Map<String, dynamic>;
}