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