DataMatrixParams.fromJson constructor

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

Creates a DataMatrixParams instance from a JSON representation.

Implementation

DataMatrixParams.fromJson(Map<String, dynamic> json) {
  aspectRatio = json['aspectRatio']?.toDouble();
  textEncoding = json['textEncoding'];
  columns = json['columns'];
  dataMatrixEcc = DataMatrixEccType.fromJson(json['dataMatrixEcc']);
  dataMatrixEncodeMode =
      DataMatrixEncodeMode.fromJson(json['dataMatrixEncodeMode']);
  rows = json['rows'];
  macroCharacters = MacroCharacter.fromJson(json['macroCharacters']);
  version = DataMatrixVersion.fromJson(json['version']);
}