GetModelResult class
Result data returned by getModel.
Constructors
-
GetModelResult({required List<
OperationResponse> activeOperations, required String createTime, required String displayName, required String etag, required String modelHash, required String name, required ModelStateResponse state, required List<String> tags, required TfLiteModelResponse tfliteModel, required String updateTime}) -
Creates a new GetModelResult.
activeOperationsLists operation ids associated with this model whose status is NOT done.createTimeTimestamp when this model was created in Firebase ML.displayNameThe name of the model to create. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores(_) and ASCII digits 0-9. It must start with a letter.etagSee RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3modelHashThe model_hash will change if a new file is available for download.nameThe resource name of the Model. Model names have the formprojects/{project_id}/models/{model_id}The name is ignored when creating a model.stateState common to all model types. Includes publishing and validation information.tagsUser defined tags which can be used to group/filter models during listingtfliteModelA TFLite ModelupdateTimeTimestamp when this model was updated in Firebase ML.const -
GetModelResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
activeOperations
→ List<
OperationResponse> -
Lists operation ids associated with this model whose status is NOT done.
final
- createTime → String
-
Timestamp when this model was created in Firebase ML.
final
- displayName → String
-
The name of the model to create. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores(_) and ASCII digits 0-9. It must start with a letter.
final
- etag → String
-
See RFC7232 https://tools.ietf.org/html/rfc7232#section-2.3
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelHash → String
-
The model_hash will change if a new file is available for download.
final
- name → String
-
The resource name of the Model. Model names have the form
projects/{project_id}/models/{model_id}The name is ignored when creating a model.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → ModelStateResponse
-
State common to all model types. Includes publishing and validation information.
final
-
User defined tags which can be used to group/filter models during listing
final
- tfliteModel → TfLiteModelResponse
-
A TFLite Model
final
- updateTime → String
-
Timestamp when this model was updated in Firebase ML.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited