Initial draft
This commit is contained in:
17
lib/dto/payment.dart
Normal file
17
lib/dto/payment.dart
Normal file
@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user