toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final m = <String, String>{type: data};
  return m;
}