fromJson static method

AvatarAuthResultServiceInfo fromJson(
  1. Map<String, dynamic> json
)

Implementation

static AvatarAuthResultServiceInfo fromJson(Map<String, dynamic> json) {
  AvatarClipConfig? resultClipConfig = AvatarClipConfig(
    rotate: json["rotate"],
    widthScale: json["widthScale"],
    heightScale: json["heightScale"],
    xscale: json["xscale"],
    yscale: json["yscale"],
  );

  return AvatarAuthResultServiceInfo(
    avatarUrl: json["avatar"],
    resultToken: json["token"],
    resultClipConfig: resultClipConfig,
  );
}