ASN1UtcTime.fromBytes constructor

ASN1UtcTime.fromBytes(
  1. Uint8List encodedBytes
)

Creates an ASN1UtcTime entity from the given encodedBytes.

Implementation

ASN1UtcTime.fromBytes(Uint8List super.encodedBytes) : super.fromBytes() {
  var stringValue = ascii.decode(valueBytes!);
  var formatedStringValue = _format(stringValue);
  time = DateTime.parse(formatedStringValue);
}