LCOV - code coverage report
Current view: top level - lib/src/models - syncresult.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 10 30.0 %
Date: 2020-05-04 13:08:30 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:json_annotation/json_annotation.dart';
       2             : part 'syncresult.g.dart';
       3             : 
       4             : @JsonSerializable(createFactory: true)
       5             : class SyncResult {
       6             :   final List items;
       7             :   final int skip;
       8             :   final int limit;
       9             :   @JsonKey(name: 'total_count')
      10             :   final int totalCount;
      11             :   @JsonKey(name: 'sync_token')
      12             :   final String syncToken;
      13             :   @JsonKey(name: 'pagination_token')
      14             :   final String paginationToken;
      15           1 :   SyncResult(this.items, this.skip, this.limit, this.totalCount, this.syncToken,
      16             :       this.paginationToken);
      17           1 :   factory SyncResult.fromJson(Map<String, dynamic> json) =>
      18           1 :       _$SyncResultFromJson(json);
      19           0 :   Map<String, dynamic> toJson() => _$SyncResultToJson(this);
      20             : }
      21             : 
      22             : @JsonSerializable()
      23             : class Items {
      24             :   final String type;
      25             :   final String eventAt;
      26             :   final String contentTypeUid;
      27             :   final List data;
      28           0 :   Items(this.type, this.eventAt, this.contentTypeUid, this.data);
      29           0 :   factory Items.fromJson(Map<String, dynamic> json) => _$ItemsFromJson(json);
      30           0 :   Map<String, dynamic> toJson() => _$ItemsToJson(this);
      31             : }
      32             : 
      33             : @JsonSerializable()
      34             : class Data {
      35             :   final String uid;
      36             :   final String locale;
      37             :   final String title;
      38           0 :   Data(this.uid, this.locale, this.title);
      39           0 :   factory Data.fromJson(Map<String, dynamic> json) => _$DataFromJson(json);
      40           0 :   Map<String, dynamic> toJson() => _$DataToJson(this);
      41             : }

Generated by: LCOV version 1.14