ImageDataModel.fromJson constructor
ImageDataModel.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ImageDataModel.fromJson(Map<String, dynamic> json) => ImageDataModel(
height: json["height"],
id: json["id"],
stack: json["stack"],
path: json["path"],
positionX: double.parse(json["positionX"]?.toString() ?? "0"),
positionY: double.parse(json["positionY"]?.toString() ?? "0"),
width: json["width"],
type: json["type"],
text: json["text"] == null ? '' : json["text"],
fileSourceType: json["fileSourceType"],
isOffline: json["isOffline"] ?? false,
);