parse method
Parse the given bytes in to Status. The given bytes will be the serialized form of a google.rpc.Status Protobuf message.
Implementation
@override
status.Status parse(Uint8List data) {
final pStatus = pb.Status.fromBuffer(data);
return status.Status(
pStatus.code,
pStatus.message,
pStatus.details
.map(
(any) => ErrorDetail(
any.typeUrl.substring(any.typeUrl.lastIndexOf("/") + 1),
Uint8List.fromList(any.value),
),
)
.toList(),
);
}