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