core.Map<core.String, core.dynamic> toJson() => { if (network != null) 'network': network!, if (subnetwork != null) 'subnetwork': subnetwork!, };