CollectdPayloadError.fromJson constructor
CollectdPayloadError.fromJson(
- Map json_
Implementation
CollectdPayloadError.fromJson(core.Map json_)
: this(
error: json_.containsKey('error')
? Status.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
index: json_.containsKey('index') ? json_['index'] as core.int : null,
valueErrors: json_.containsKey('valueErrors')
? (json_['valueErrors'] as core.List)
.map((value) => CollectdValueError.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);