Errors.fromJson constructor
Errors.fromJson(
- Map json_
Implementation
Errors.fromJson(core.Map json_)
: this(
code: json_.containsKey('code') ? json_['code'] as core.String : null,
error: json_.containsKey('error')
? (json_['error'] as core.List)
.map((value) => ErrorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
requestId: json_.containsKey('requestId')
? json_['requestId'] as core.String
: null,
);