GoogleCloudDatalabelingV1beta1OperatorMetadata.fromJson constructor
GoogleCloudDatalabelingV1beta1OperatorMetadata.fromJson(
- Map json_
Implementation
GoogleCloudDatalabelingV1beta1OperatorMetadata.fromJson(core.Map json_)
: this(
comments: json_.containsKey('comments')
? (json_['comments'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
labelVotes: json_.containsKey('labelVotes')
? json_['labelVotes'] as core.int
: null,
score: json_.containsKey('score')
? (json_['score'] as core.num).toDouble()
: null,
totalVotes: json_.containsKey('totalVotes')
? json_['totalVotes'] as core.int
: null,
);