LCOV - code coverage report
Current view: top level - lib/data/models/mobility - stop_model.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 8 8 100.0 %
Date: 2020-06-26 11:36:11 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:app_pym/domain/entities/mobility/stop.dart';
       2             : import 'package:freezed_annotation/freezed_annotation.dart';
       3             : 
       4             : part 'stop_model.freezed.dart';
       5             : 
       6             : @freezed
       7             : abstract class StopModel with _$StopModel {
       8             :   const factory StopModel({
       9             :     String stop_id,
      10             :     String stop_code,
      11             :     String stop_name,
      12             :     String stop_lat,
      13             :     String stop_long,
      14             :     int location_type,
      15             :   }) = _StopModel;
      16             : }
      17             : 
      18             : extension StopModelX on StopModel {
      19           4 :   Stop toEntity() {
      20           4 :     return Stop(
      21           4 :       stop_id: this.stop_id,
      22           4 :       stop_code: this.stop_code,
      23           4 :       stop_name: this.stop_name,
      24           4 :       stop_lat: this.stop_lat,
      25           4 :       stop_long: this.stop_long,
      26           4 :       location_type: this.location_type,
      27             :     );
      28             :   }
      29             : }

Generated by: LCOV version 1.13