Attempt.fromJson constructor
Attempt.fromJson(
- Object? j
Implementation
factory Attempt.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Attempt(
scheduleTime: switch (json['scheduleTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
dispatchTime: switch (json['dispatchTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
responseTime: switch (json['responseTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
responseStatus: switch (json['responseStatus']) {
null => null,
Object $1 => Status.fromJson($1),
},
);
}