ListHistoryResponse.fromJson constructor

ListHistoryResponse.fromJson(
  1. Map json_
)

Implementation

ListHistoryResponse.fromJson(core.Map json_)
    : this(
        history: json_.containsKey('history')
            ? (json_['history'] as core.List)
                .map((value) => History.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        historyId: json_.containsKey('historyId')
            ? json_['historyId'] as core.String
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );