toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final number = this.number;
  final type = this.type;
  return {
    'Number': number,
    'Type': type.toValue(),
  };
}