toJson method

Map<String, dynamic> toJson()

type that contain String value type of avatar image version is contain upadted or latest version left,scaleX,scaleY is double value used to alignment of image fill, src, avatarType contains string value animation Contains object values

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(),
    };