class Node_red_ui { String _type; String _scope; List _tabs; node_red_ui({String type, String scope, List tabs}) { this._type = type; this._scope = scope; this._tabs = tabs; } String get type => _type; set type(String type) => _type = type; String get scope => _scope; set scope(String scope) => _scope = scope; List get tabs => _tabs; set tabs(List tabs) => _tabs = tabs; Node_red_ui.fromJson(Map json) { _type = json['type']; _scope = json['scope']; if (json['tabs'] != null) { _tabs = new List(); json['tabs'].forEach((v) { _tabs.add(new Tabs.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['type'] = this._type; data['scope'] = this._scope; if (this._tabs != null) { data['tabs'] = this._tabs.map((v) => v.toJson()).toList(); } return data; } } class Tabs { String _id; TabDetails _tabDetails; List _groups; Tabs({String id, TabDetails tabDetails, List groups}) { this._id = id; this._tabDetails = tabDetails; this._groups = groups; } String get id => _id; set id(String id) => _id = id; TabDetails get tabDetails => _tabDetails; set tabDetails(TabDetails tabDetails) => _tabDetails = tabDetails; List get groups => _groups; set groups(List groups) => _groups = groups; Tabs.fromJson(Map json) { _id = json['id']; _tabDetails = json['tab_details'] != null ? new TabDetails.fromJson(json['tab_details']) : null; if (json['groups'] != null) { _groups = new List(); json['groups'].forEach((v) { _groups.add(new Groups.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['id'] = this._id; if (this._tabDetails != null) { data['tab_details'] = this._tabDetails.toJson(); } if (this._groups != null) { data['groups'] = this._groups.map((v) => v.toJson()).toList(); } return data; } } class TabDetails { String _id; String _type; String _z; String _name; String _icon; bool _disabled; bool _hidden; TabDetails( {String id, String type, String z, String name, String icon, bool disabled, bool hidden}) { this._id = id; this._type = type; this._z = z; this._name = name; this._icon = icon; this._disabled = disabled; this._hidden = hidden; } String get id => _id; set id(String id) => _id = id; String get type => _type; set type(String type) => _type = type; String get z => _z; set z(String z) => _z = z; String get name => _name; set name(String name) => _name = name; String get icon => _icon; set icon(String icon) => _icon = icon; bool get disabled => _disabled; set disabled(bool disabled) => _disabled = disabled; bool get hidden => _hidden; set hidden(bool hidden) => _hidden = hidden; TabDetails.fromJson(Map json) { _id = json['id']; _type = json['type']; _z = json['z']; _name = json['name']; _icon = json['icon']; _disabled = json['disabled']; _hidden = json['hidden']; } Map toJson() { final Map data = new Map(); data['id'] = this._id; data['type'] = this._type; data['z'] = this._z; data['name'] = this._name; data['icon'] = this._icon; data['disabled'] = this._disabled; data['hidden'] = this._hidden; return data; } } class Groups { String _id; GroupDetails _groupDetails; List _elements; List _rawElements; Groups( {String id, GroupDetails groupDetails, List elements, List rawElements}) { this._id = id; this._groupDetails = groupDetails; this._elements = elements; this._rawElements = rawElements; } String get id => _id; set id(String id) => _id = id; GroupDetails get groupDetails => _groupDetails; set groupDetails(GroupDetails groupDetails) => _groupDetails = groupDetails; List get elements => _elements; set element(List elements) => _elements = elements; List get rawElements => _rawElements; set rawElement(List rawElements) => _rawElements = rawElements; Groups.fromJson(Map json) { _id = json['id']; _groupDetails = json['group_details'] != null ? new GroupDetails.fromJson(json['group_details']) : null; if (json['elements'] != null) { _rawElements = json['elements']; _elements = new List(); json['elements'].forEach((v) { _elements.add(new Element.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['id'] = this._id; if (this._groupDetails != null) { data['group_details'] = this._groupDetails.toJson(); } if (this._elements != null) { data['elements'] = this._elements.map((v) => v.toJson()).toList(); data['rawElements'] = this._rawElements; } return data; } } class GroupDetails { String _id; String _type; String _z; String _name; String _tab; int _order; bool _disp; String _width; bool _collapse; GroupDetails( {String id, String type, String z, String name, String tab, int order, bool disp, String width, bool collapse}) { this._id = id; this._type = type; this._z = z; this._name = name; this._tab = tab; this._order = order; this._disp = disp; this._width = width; this._collapse = collapse; } String get id => _id; set id(String id) => _id = id; String get type => _type; set type(String type) => _type = type; String get z => _z; set z(String z) => _z = z; String get name => _name; set name(String name) => _name = name; String get tab => _tab; set tab(String tab) => _tab = tab; int get order => _order; set order(int order) => _order = order; bool get disp => _disp; set disp(bool disp) => _disp = disp; String get width => _width; set width(String width) => _width = width; bool get collapse => _collapse; set collapse(bool collapse) => _collapse = collapse; GroupDetails.fromJson(Map json) { _id = json['id']; _type = json['type']; _z = json['z']; _name = json['name']; _tab = json['tab']; _order = json['order']; _disp = json['disp']; _width = json['width']; _collapse = json['collapse']; } Map toJson() { final Map data = new Map(); data['id'] = this._id; data['type'] = this._type; data['z'] = this._z; data['name'] = this._name; data['tab'] = this._tab; data['order'] = this._order; data['disp'] = this._disp; data['width'] = this._width; data['collapse'] = this._collapse; return data; } } class Element { String _id; String _type; String _z; String _name; String _group; int _order; int _width; int _height; bool _passthru; String _label; String _tooltip; String _color; String _bgcolor; String _icon; String _payload; String _payloadType; String _topic; String _topicType; int _x; int _y; String _format; String _layout; Element( {String id, String type, String z, String name, String group, int order, int width, int height, bool passthru, String label, String tooltip, String color, String bgcolor, String icon, String payload, String payloadType, String topic, String topicType, int x, int y, String format, String layout}) { this._id = id; this._type = type; this._z = z; this._name = name; this._group = group; this._order = order; this._width = width; this._height = height; this._passthru = passthru; this._label = label; this._tooltip = tooltip; this._color = color; this._bgcolor = bgcolor; this._icon = icon; this._payload = payload; this._payloadType = payloadType; this._topic = topic; this._topicType = topicType; this._x = x; this._y = y; this._format = format; this._layout = layout; } String get id => _id; set id(String id) => _id = id; String get type => _type; set type(String type) => _type = type; String get z => _z; set z(String z) => _z = z; String get name => _name; set name(String name) => _name = name; String get group => _group; set group(String group) => _group = group; int get order => _order; set order(int order) => _order = order; int get width => _width; set width(int width) => _width = width; int get height => _height; set height(int height) => _height = height; bool get passthru => _passthru; set passthru(bool passthru) => _passthru = passthru; String get label => _label; set label(String label) => _label = label; String get tooltip => _tooltip; set tooltip(String tooltip) => _tooltip = tooltip; String get color => _color; set color(String color) => _color = color; String get bgcolor => _bgcolor; set bgcolor(String bgcolor) => _bgcolor = bgcolor; String get icon => _icon; set icon(String icon) => _icon = icon; String get payload => _payload; set payload(String payload) => _payload = payload; String get payloadType => _payloadType; set payloadType(String payloadType) => _payloadType = payloadType; String get topic => _topic; set topic(String topic) => _topic = topic; String get topicType => _topicType; set topicType(String topicType) => _topicType = topicType; int get x => _x; set x(int x) => _x = x; int get y => _y; set y(int y) => _y = y; String get format => _format; set format(String format) => _format = format; String get layout => _layout; set layout(String layout) => _layout = layout; Element.fromJson(Map json) { _id = json['id']; _type = json['type']; _z = json['z']; _name = json['name']; _group = json['group']; _order = json['order']; _width = json['width']; _height = json['height']; _passthru = json['passthru']; _label = json['label']; _tooltip = json['tooltip']; _color = json['color']; _bgcolor = json['bgcolor']; _icon = json['icon']; _payload = json['payload']; _payloadType = json['payloadType']; _topic = json['topic']; _topicType = json['topicType']; _x = json['x']; _y = json['y']; _format = json['format']; _layout = json['layout']; } Map toJson() { final Map data = new Map(); data['id'] = this._id; data['type'] = this._type; data['z'] = this._z; data['name'] = this._name; data['group'] = this._group; data['order'] = this._order; data['width'] = this._width; data['height'] = this._height; data['passthru'] = this._passthru; data['label'] = this._label; data['tooltip'] = this._tooltip; data['color'] = this._color; data['bgcolor'] = this._bgcolor; data['icon'] = this._icon; data['payload'] = this._payload; data['payloadType'] = this._payloadType; data['topic'] = this._topic; data['topicType'] = this._topicType; data['x'] = this._x; data['y'] = this._y; data['format'] = this._format; data['layout'] = this._layout; return data; } }