PassBarcode.fromJson constructor

PassBarcode.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PassBarcode.fromJson(Map<String, Object?> json) => PassBarcode(
      format: _allowedFormats[json['format']]!,
      message: json['message'] as String,
      messageEncoding:
          supportedCodecs[(json['messageEncoding'] as String).toLowerCase()]!,
      altText: json['altText'] as String?,
    );