AttemptDetail.fromJson constructor

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

Implementation

factory AttemptDetail.fromJson(Map<String, dynamic> json) {
  return AttemptDetail(
    container: json['container'] != null
        ? AttemptContainerDetail.fromJson(
            json['container'] as Map<String, dynamic>)
        : null,
    startedAt: json['startedAt'] as int?,
    statusReason: json['statusReason'] as String?,
    stoppedAt: json['stoppedAt'] as int?,
  );
}