RotatingBarcode.fromJson constructor

RotatingBarcode.fromJson(
  1. Map json_
)

Implementation

RotatingBarcode.fromJson(core.Map json_)
    : this(
        alternateText: json_.containsKey('alternateText')
            ? json_['alternateText'] as core.String
            : null,
        initialRotatingBarcodeValues:
            json_.containsKey('initialRotatingBarcodeValues')
                ? RotatingBarcodeValues.fromJson(
                    json_['initialRotatingBarcodeValues']
                        as core.Map<core.String, core.dynamic>)
                : null,
        renderEncoding: json_.containsKey('renderEncoding')
            ? json_['renderEncoding'] as core.String
            : null,
        showCodeText: json_.containsKey('showCodeText')
            ? LocalizedString.fromJson(
                json_['showCodeText'] as core.Map<core.String, core.dynamic>)
            : null,
        totpDetails: json_.containsKey('totpDetails')
            ? RotatingBarcodeTotpDetails.fromJson(
                json_['totpDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        valuePattern: json_.containsKey('valuePattern')
            ? json_['valuePattern'] as core.String
            : null,
      );