GemParameter class Core

A parameter is a tuple ( key, value, name ).

key is the string parameter identifier

value is the parameter variant value.

name is the string parameter name. When parameters are returned from SDK the name is translated in the SDK language

value is the parameter value. It is dependent on the type

Constructors

GemParameter({ValueType? type, dynamic value, String? name, String? key})
Construct a parameter object with key & value & name ( optional ) Parameters
GemParameter.fromJson(Map<String, dynamic> json)
factory
GemParameter.withBool({required String key, required bool value, String? name})
Creates a GemParameter with a ValueType.bool value type
factory
GemParameter.withInt({required String key, required int value, String? name})
Creates a GemParameter with a ValueType.int value type
factory
GemParameter.withList({required String key, required ParameterList value, String? name})
Creates a GemParameter with a ValueType.list value type
factory
GemParameter.withReal({required String key, required double value, String? name})
Creates a GemParameter with a ValueType.real value type
factory
GemParameter.withString({required String key, required String value, String? name})
Creates a GemParameter with a ValueType.string value type
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
key String?
getter/setter pair
name String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ValueType?
getter/setter pair
value ↔ dynamic
getter/setter pair

Methods

asJson() Map<String, dynamic>?
Returns the parameters as a deeply structured JSON object (the lists contained within will be expanded).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(covariant GemParameter other) bool
The equality operator.
override