DataBarParams.fromJson constructor

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

Creates a DataBarParams instance from a JSON representation.

Implementation

DataBarParams.fromJson(Map<String, dynamic> json) {
  aspectRatio = json['aspectRatio']?.toDouble();
  columns = json['columns'];
  rows = json['rows'];
  is2DCompositeComponent = json['is2DCompositeComponent'];
  isAllowOnlyGS1Encoding = json['isAllowOnlyGS1Encoding'];
}