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