Object.fromJson constructor

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

Implementation

factory Object.fromJson(Map<String, dynamic> json) => Object(
      type: json["type"],
      version: json["version"],
      left: json["left"]?.toDouble(),
      top: json["top"],
      fill: json["fill"],
      scaleX: json["scaleX"]?.toDouble(),
      scaleY: json["scaleY"]?.toDouble(),
      src: json["src"],
      avatarType: json["avatarType"],
      animation: json["animation"] == null
          ? null
          : Animation.fromJson(json["animation"]),
    );