toJson method
Implementation
Map<String, dynamic> toJson() => {
'targetType': targetTypeString,
'sourceShape': sourceShape.name,
'targetShape': targetShape.name,
'isCompatible': isCompatible,
'forceConversionAvailable': forceConversionAvailable,
'canSwitch': canSwitch,
'requiresForce': requiresForce,
'targetRegistered': targetRegistered,
'compatibleTypes': compatibleTypes
.map(chartTypeToString)
.toList(growable: false),
'targetCapabilities': targetCapabilities.toJson(),
'reason': reason,
};