17 lines
466 B
Dart
17 lines
466 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'payment.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class PaymentMethodDTO {
|
|
PaymentMethodDTO(this.id,
|
|
{required this.description,
|
|
required this.shortCode});
|
|
|
|
final String id;
|
|
final String description;
|
|
final String shortCode;
|
|
|
|
factory PaymentMethodDTO.fromJson(Map<String, dynamic> json) => _$PaymentMethodDTOFromJson(json);
|
|
Map<dynamic, dynamic> toJson() => _$PaymentMethodDTOToJson(this);
|
|
} |