SetupAttemptOrId.fromJson constructor

SetupAttemptOrId.fromJson(
  1. Object? json
)

Implementation

factory SetupAttemptOrId.fromJson(Object? json) {
  if (json is String) {
    return SetupAttemptId(id: json);
  }
  return SetupAttempt.fromJson(json);
}