clone<T extends Mappable> method Null safety

T clone<T extends Mappable>()

Implementation

T clone<T extends Mappable>() {
  final json = toJson();
  return Mapper.fromJson(json).toObject<T>()!;
}