Map<String, dynamic> toJson() => {"index": index, "network_index": network_index}..removeWhere( (dynamic key, dynamic value) => key == null || value == null);