RunList.fromJson constructor
Creates a RunList from JSON.
Implementation
factory RunList.fromJson(Map<String, dynamic> json) {
return RunList(
object: json['object'] as String,
data: (json['data'] as List<dynamic>)
.map((e) => Run.fromJson(e as Map<String, dynamic>))
.toList(),
firstId: json['first_id'] as String?,
lastId: json['last_id'] as String?,
hasMore: json['has_more'] as bool,
);
}