MaxiCodeParams.fromJson constructor

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

Creates a MaxiCodeParams instance from a JSON representation.

Implementation

MaxiCodeParams.fromJson(Map<String, dynamic> json) {
  aspectRatio = json['aspectRatio']?.toDouble();
  mode = MaxiCodeMode.fromJson(json['mode']);
  encodeMode = MaxiCodeEncodeMode.fromJson(json['encodeMode']);
}