Environment class Null safety

Represents a Google Tag Manager Environment.

Note that a user can create, delete and update environments of type USER, but can only update the enable_debug and url fields of environments of other types.


Environment({String? accountId, String? authorizationCode, String? authorizationTimestampMs, String? containerId, String? containerVersionId, String? description, bool? enableDebug, String? environmentId, String? fingerprint, String? name, String? type, String? url})
Environment.fromJson(Map json_)


accountId String?
GTM Account ID.
read / write
authorizationCode String?
The environment authorization code.
read / write
authorizationTimestampMs String?
The last update time-stamp for the authorization code.
read / write
containerId String?
GTM Container ID.
read / write
containerVersionId String?
read / write
description String?
The environment description.
read / write
enableDebug bool?
Whether or not to enable debug by default on for the environment.
read / write
environmentId String?
GTM Environment ID uniquely identifies the GTM Environment.
read / write
fingerprint String?
The fingerprint of the GTM environment as computed at storage time.
read / write
hashCode int
The hash code for this object.
name String?
The environment display name.
read / write
runtimeType Type
A representation of the runtime type of the object.
type String?
The type of this environment. Possible string values are:
read / write
url String?
Default preview page url for the environment.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


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