Record.fromJson constructor

Record.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Record.fromJson(Map<String, dynamic> json) {
  return Record(
    data: _s.decodeUint8List(json['Data']! as String),
    partitionKey: json['PartitionKey'] as String,
    sequenceNumber: json['SequenceNumber'] as String,
    approximateArrivalTimestamp:
        timeStampFromJson(json['ApproximateArrivalTimestamp']),
    encryptionType: (json['EncryptionType'] as String?)?.toEncryptionType(),
  );
}