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