ProtoGoogleDuration.deserialize constructor

ProtoGoogleDuration.deserialize(
  1. List<int> bytes
)

Implementation

factory ProtoGoogleDuration.deserialize(List<int> bytes) {
  final decode = ProtoBufferDecoder.decode(
    bytes: bytes,
    messageConfig: protoConfigStatic(),
  );
  return ProtoGoogleDuration(
    seconds: decode.getBigInt<BigInt?>(1),
    nanos: decode.getInt<int?>(2),
  );
}