CustomBiddingScript.fromJson constructor
CustomBiddingScript.fromJson(
- Map json_
Implementation
CustomBiddingScript.fromJson(core.Map json_)
: this(
active:
json_.containsKey('active') ? json_['active'] as core.bool : null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
customBiddingAlgorithmId:
json_.containsKey('customBiddingAlgorithmId')
? json_['customBiddingAlgorithmId'] as core.String
: null,
customBiddingScriptId: json_.containsKey('customBiddingScriptId')
? json_['customBiddingScriptId'] as core.String
: null,
errors: json_.containsKey('errors')
? (json_['errors'] as core.List)
.map((value) => ScriptError.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
script: json_.containsKey('script')
? CustomBiddingScriptRef.fromJson(
json_['script'] as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);