LCOV - code coverage report
Current view: top level - src - LocationData.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 12 12 100.0 %
Date: 2020-11-18 14:13:03 Functions: 0 0 -

          Line data    Source code
       1             : class LocationData {
       2             :   /// Name of Location
       3             :   String featureName;
       4             : 
       5             :   /// State of Location
       6             :   String state;
       7             : 
       8             :   /// Latitude position of Location
       9             :   double latitude;
      10             : 
      11             :   /// Longitude position of Location
      12             :   double longitude;
      13             : 
      14           1 :   LocationData(this.featureName, this.state, this.latitude, this.longitude);
      15             : 
      16           1 :   static LocationData fromJson(Map<String, dynamic> json) {
      17           1 :     return LocationData(
      18           1 :         json['featureName'],
      19           1 :         json['state'],
      20           3 :         double.parse(json['latitude'].toString()),
      21           3 :         double.parse(json['longitude'].toString()));
      22             :   }
      23             : 
      24           2 :   Map<String, dynamic> toJson() => {
      25           1 :         'featureName': featureName,
      26           1 :         'state': state,
      27           1 :         'latitude': latitude,
      28           1 :         'longitude': longitude
      29             :       };
      30             : }

Generated by: LCOV version 1.15