toJson method

Map<String?, dynamic> toJson()

Implementation

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