toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var plan = this.plan;

  final json = <String, Object?>{};
  json[r'id'] = id;
  json[r'plan'] = plan.value;
  return json;
}