QrParams.fromJson constructor

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

Creates a QrParams instance from a JSON representation.

Implementation

QrParams.fromJson(Map<String, dynamic> json) {
  aspectRatio = json['aspectRatio']?.toDouble();
  textEncoding = json['textEncoding'];
  encodeType = QREncodeType.fromJson(json['encodeType']);
  eCIEncoding = ECIEncodings.fromJson(json['eCIEncoding']);
  encodeMode = QREncodeMode.fromJson(json['encodeMode']);
  errorLevel = QRErrorLevel.fromJson(json['errorLevel']);
  version = QRVersion.fromJson(json['version']);
  structuredAppend = StructuredAppend.fromJson(json['structuredAppend']);
}