Media.fromJson constructor

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

Implementation

factory Media.fromJson(Map<String, dynamic> json) => Media(
      imageId: json["imageId"],
      autoDimension: json["autoDimension"],
      hasAdvancedOptions: json["hasAdvancedOptions"],
      dimension: json["dimension"] == null
          ? null
          : Dimension.fromJson(json["dimension"]),
      alignment: json["alignment"],
      margin: json["margin"] == null ? null : Margin.fromJson(json["margin"]),
      roundness: json["roundness"],
      id: json["_id"],
      imageUrl: json["imageUrl"],
    );