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,
);