SpeedTestEntity.fromJson constructor
SpeedTestEntity.fromJson(
- dynamic data
Implementation
SpeedTestEntity.fromJson(data) {
Map<String, dynamic> json =
data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
currentResult = SpeedTestResultEntity.fromJson(json['currentResult']);
finishedCount = json['finishedCount'];
totalCount = json['totalCount'];
}