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