TestRuns.fromJson constructor

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

Implementation

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

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