Line data Source code
1 : import 'package:freezed_annotation/freezed_annotation.dart'; 2 : 3 : part 'ref.freezed.dart'; 4 : part 'ref.g.dart'; 5 : 6 : ///Ref model 7 : /// 8 : ///Handle Prismic.io references for querying. 9 : @freezed 10 : class Ref with _$Ref { 11 : ///Deafult factory constructor for Ref 12 : factory Ref({ 13 : required String id, 14 : required String label, 15 : required String ref, 16 : required bool isMasterRef, 17 : }) = _Ref; 18 : 19 : ///Creates a Ref object from json 20 14 : factory Ref.fromJson(Map<String, dynamic> json) => _$RefFromJson(json); 21 : }