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
- deepLink → String?
-
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
--jsonprofile 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/resolveresponse body into a per-platform view. Pure (no I/O) so it is directly unit-testable. MirrorsresolveProfile()in the Nodesrc/commands/resolve.js.