TestCases.fromJson constructor

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

Implementation

factory TestCases.fromJson(Map<String, dynamic> json) {
  final runs = json['cases']
      ?.map((r) => TestCase.fromJson(r))
      .toList()
      .cast<TestCase>();

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