GetSetupAttemptsResponse.fromJson constructor
GetSetupAttemptsResponse.fromJson(
- Object? json
Implementation
factory GetSetupAttemptsResponse.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return GetSetupAttemptsResponse(
data: (map['data'] as List<Object?>)
.map((el) => SetupAttempt.fromJson(el))
.toList(),
hasMore: (map['has_more'] as bool),
url: (map['url'] as String),
);
}