LCOV - code coverage report
Current view: top level - lib/domain/entities/authentication - app_user.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 9 9 100.0 %
Date: 2020-06-26 11:36:11 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:app_pym/data/models/authentication/app_user_model.dart';
       2             : import 'package:flutter/foundation.dart';
       3             : import 'package:freezed_annotation/freezed_annotation.dart';
       4             : 
       5             : part 'app_user.freezed.dart';
       6             : 
       7             : @freezed
       8             : abstract class AppUser with _$AppUser {
       9             :   const factory AppUser({
      10             :     @required int id,
      11             :     @nullable @required String email,
      12             :     @nullable @required String username,
      13             :     @nullable @required String password,
      14             :     @nullable @required String role,
      15             :     @nullable @required bool is_email_verified,
      16             :     @nullable @required String token,
      17             :   }) = _AppUser;
      18             : }
      19             : 
      20             : extension AppUserX on AppUser {
      21           1 :   AppUserModel toModel() {
      22           1 :     return AppUserModel(
      23           1 :       id: this.id,
      24           1 :       email: this.email,
      25           1 :       username: this.username,
      26           1 :       password: this.password,
      27           1 :       role: this.role,
      28           1 :       is_email_verified: this.is_email_verified,
      29           1 :       token: this.token,
      30             :     );
      31             :   }
      32             : }

Generated by: LCOV version 1.13