StackImageItem.fromJson constructor
StackImageItem.fromJson(
- Map<String, dynamic> data
)
Implementation
factory StackImageItem.fromJson(Map<String, dynamic> data) {
return StackImageItem(
id: data['id'] == null ? null : asT<String>(data['id']),
angle: data['angle'] == null ? null : asT<double>(data['angle']),
size: jsonToSize(asMap(data['size'])),
offset:
data['offset'] == null ? null : jsonToOffset(asMap(data['offset'])),
status: StackItemStatus.values[data['status'] as int],
lockZOrder: asNullT<bool>(data['lockZOrder']) ?? false,
content: ImageItemContent.fromJson(asMap(data['content'])),
);
}