Pdf417Params.fromJson constructor

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

Creates a Pdf417Params instance from a JSON representation.

Implementation

Pdf417Params.fromJson(Map<String, dynamic> json) {
  aspectRatio = json['aspectRatio']?.toDouble();
  textEncoding = json['textEncoding'];
  columns = json['columns'];
  compactionMode = Pdf417CompactionMode.fromJson(json['compactionMode']);
  errorLevel = Pdf417ErrorLevel.fromJson(json['errorLevel']);
  macroFileID = json['macroFileID'];
  macroSegmentID = json['macroSegmentID'];
  macroSegmentsCount = json['macroSegmentsCount'];
  rows = json['rows'];
  truncate = json['truncate'];
  pdf417ECIEncoding = ECIEncodings.fromJson(json['pdf417ECIEncoding']);
  isReaderInitialization = json['isReaderInitialization'];
  macroTimeStamp = json['macroTimeStamp'] == null
      ? null
      : DateTime.parse(json['macroTimeStamp']);
  macroSender = json['macroSender'];
  macroFileSize = json['macroFileSize'];
  macroChecksum = json['macroChecksum'];
  macroFileName = json['macroFileName'];
  macroAddressee = json['macroAddressee'];
  macroECIEncoding = ECIEncodings.fromJson(json['macroECIEncoding']);
  code128Emulation = Code128Emulation.fromJson(json['code128Emulation']);
  isCode128Emulation = json['isCode128Emulation'];
  pdf417MacroTerminator =
      Pdf417MacroTerminator.fromJson(json['pdf417MacroTerminator']);
  isLinked = json['isLinked'];
  macroCharacters = MacroCharacter.fromJson(json['macroCharacters']);
}