TestCaseHistory.fromJson constructor

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

Implementation

factory TestCaseHistory.fromJson(Map<String, dynamic> json) {
  final history = json['history']
      ?.map((r) => History.fromJson(r))
      .toList()
      .cast<History>();

  return TestCaseHistory(
    history: history,
    limit: json['limit'],
    links: Links.fromJson(json['_links']),
    offset: json['offset'],
    size: json['size'],
  );
}