Map<String?, dynamic> toJson() { final Map<String?, List<dynamic>?> data = Map<String?, List<dynamic>?>(); if (key != null) { data[key] = this.value; } return data; }