Requests.fromJson constructor

Requests.fromJson(
  1. Map json_
)

Implementation

Requests.fromJson(core.Map json_)
    : this(
        longTermAllowed: json_.containsKey('longTermAllowed')
            ? json_['longTermAllowed'] as core.int
            : null,
        longTermDenied: json_.containsKey('longTermDenied')
            ? json_['longTermDenied'] as core.int
            : null,
        ratio: json_.containsKey('ratio')
            ? (json_['ratio'] as core.num).toDouble()
            : null,
        shortTermAllowed: json_.containsKey('shortTermAllowed')
            ? json_['shortTermAllowed'] as core.int
            : null,
      );