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