FastResponseAdRanking.fromJson constructor

FastResponseAdRanking.fromJson(
  1. Map<String, dynamic> json
)

Factory constructor to create a FastResponseAdRanking instance from a JSON Map. Expects the JSON map to have 'value' and 'factor' fields.

Implementation

factory FastResponseAdRanking.fromJson(Map<String, dynamic> json) {
  return FastResponseAdRanking(
    value: json['value'] as double,
    factor: json['factor'] as int,
  );
}