SpeedTestEntity.fromJson constructor

SpeedTestEntity.fromJson(
  1. 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'];
}