Migrate constructor

  1. @jsonSerializable
const Migrate({
  1. required String did,
  2. String? migrateTo,
  3. @JsonKey(name: 'seq') required int cursor,
  4. @JsonKey(name: 'time') required DateTime createdAt,
})

Implementation

@jsonSerializable
const factory Migrate({
  required String did,
  String? migrateTo,
  @JsonKey(name: 'seq') required int cursor,
  @JsonKey(name: 'time') required DateTime createdAt,
}) = _Migrate;