LCOV - code coverage report
Current view: top level - api - api.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 1 1 100.0 %
Date: 2021-05-31 17:15:31 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:freezed_annotation/freezed_annotation.dart';
       2             : import '../info/language.dart';
       3             : import 'ref.dart';
       4             : 
       5             : part 'api.freezed.dart';
       6             : part 'api.g.dart';
       7             : 
       8             : ///Api model
       9             : ///
      10             : ///Handle Prismic.io entrypoint data for querying.
      11             : @freezed
      12             : class Api with _$Api {
      13             :   ///Deafult factory constructor for Ref
      14             :   factory Api({
      15             :     @JsonKey(name: 'oauth_initiate') required String? oauthInitiate,
      16             :     @JsonKey(name: 'oauth_token') required String? oauthToken,
      17             :     required List<Language> languages,
      18             :     required List<Ref> refs,
      19             :     required String license,
      20             :     required String version,
      21             :     Map<String, String>? types,
      22             :   }) = _Api;
      23             : 
      24             :   ///Creates a Api object from json
      25          14 :   factory Api.fromJson(Map<String, dynamic> json) => _$ApiFromJson(json);
      26             : }

Generated by: LCOV version 1.15