toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (name != null) {
    json[r'name'] = name;
  }
  if (width != null) {
    json[r'width'] = width;
  }
  if (height != null) {
    json[r'height'] = height;
  }
  if (descr != null) {
    json[r'descr'] = descr;
  }
  if (tag != null) {
    json[r'tag'] = tag;
  }
  if (guid != null) {
    json[r'guid'] = guid;
  }
  if (group != null) {
    json[r'group'] = group;
  }
  json[r'sections'] = sections;
  json[r'importedServiceXPaths'] = importedServiceXPaths;
  return json;
}