35 lines
810 B
Dart
35 lines
810 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'operation.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class PaymentOperationDTO {
|
|
final String? stepRef;
|
|
final String? operationRef;
|
|
final String? gateway;
|
|
final String? code;
|
|
final String? state;
|
|
final String? label;
|
|
final String? failureCode;
|
|
final String? failureReason;
|
|
final String? startedAt;
|
|
final String? completedAt;
|
|
|
|
const PaymentOperationDTO({
|
|
this.stepRef,
|
|
this.operationRef,
|
|
this.gateway,
|
|
this.code,
|
|
this.state,
|
|
this.label,
|
|
this.failureCode,
|
|
this.failureReason,
|
|
this.startedAt,
|
|
this.completedAt,
|
|
});
|
|
|
|
factory PaymentOperationDTO.fromJson(Map<String, dynamic> json) =>
|
|
_$PaymentOperationDTOFromJson(json);
|
|
Map<String, dynamic> toJson() => _$PaymentOperationDTOToJson(this);
|
|
}
|