ResolveProfile class

Normalized per-platform view of a GET /sdk/resolve response. Built by the pure ResolveProfile.fromResolved reducer so it is directly unit-testable.

Constructors

ResolveProfile({String? slug, String? type, String? deepLink, bool forceRedirect = false, required PlatformResolution ios, required PlatformResolution ipad, required PlatformResolution android, required PlatformResolution desktop, required Map<String, String> attribution})

Properties

android PlatformResolution
final
attribution Map<String, String>
final
final
desktop PlatformResolution
final
forceRedirect bool
final
hashCode int
The hash code for this object.
no setterinherited
ios PlatformResolution
final
ipad PlatformResolution
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String?
final
type String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Flat JSON shape matching the Node CLI's --json profile fields exactly.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromResolved(Map<String, dynamic>? resolved) ResolveProfile
Normalize a raw GET /sdk/resolve response body into a per-platform view. Pure (no I/O) so it is directly unit-testable. Mirrors resolveProfile() in the Node src/commands/resolve.js.