@override Object toJson() => { if (nodeGroups.isNotDefault) 'nodeGroups': [for (final i in nodeGroups) i.toJson()], 'warning': ?warning?.toJson(), };