Some checks failed
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
26 lines
563 B
Dart
26 lines
563 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
import 'package:pshared/data/dto/date_time.dart';
|
|
|
|
part 'storable.g.dart';
|
|
|
|
|
|
@JsonSerializable()
|
|
class StorableDTO {
|
|
final String id;
|
|
|
|
@UtcIso8601Converter()
|
|
final DateTime createdAt;
|
|
|
|
@UtcIso8601Converter()
|
|
final DateTime updatedAt;
|
|
|
|
const StorableDTO({
|
|
required this.id,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
});
|
|
|
|
factory StorableDTO.fromJson(Map<String, dynamic> json) => _$StorableDTOFromJson(json);
|
|
Map<String, dynamic> toJson() => _$StorableDTOToJson(this);
|
|
} |