SetupIntentOrId.fromJson constructor

SetupIntentOrId.fromJson(
  1. Object? json
)

Implementation

factory SetupIntentOrId.fromJson(Object? json) {
  if (json is String) {
    return SetupIntentId(id: json);
  }
  return SetupIntent.fromJson(json);
}