toJson method
Implementation
Map<String, dynamic> toJson() => {
"type": type,
"version": version,
"left": left,
"top": top,
"fill": fill,
"scaleX": scaleX,
"scaleY": scaleY,
"src": src,
"avatarType": avatarType,
"animation": animation?.toJson(),
};