Asset.fromJson constructor

Asset.fromJson(
  1. JSONMap json
)

Implementation

Asset.fromJson(JSONMap json)
    : alt = json["alt"] ?? "",
      name = json["name"] ?? "",
      focus = json["focus"] ?? "",
      title = json["title"] ?? "",
      copyright = json["copyright"] ?? "",
      fileName = json["filename"] ?? "",
      metadata = mapIfNotNull(json["metadata"] as Map?, (e) => JSONMap.from(e));