Map<String, dynamic> toJson() => { 'ui': ui?.toJson(), 'network': network?.toJson(), 'capture': capture?.toJson(), }._withoutNullValues();