RADRequest.fromJson constructor

  1. @override
RADRequest.fromJson(
  1. Map<String, dynamic> json
)

Implementation

@override
factory RADRequest.fromJson(Map<String, dynamic> json) => RADRequest(
      aggregate: RADAggregate.fromJson(json["aggregate"]),
      retrieve: List<RADRetrieve>.from(
          json["retrieve"].map((x) => RADRetrieve.fromJson(x))),
      tally: RADTally.fromJson(json["tally"]),
      timeLock: (json["time_lock"] > 0) ? json["time_lock"] : null,
    );