Barcode.fromNative constructor

Barcode.fromNative(
  1. Map data
)

Create a Barcode from native data.

Implementation

Barcode.fromNative(Map<dynamic, dynamic> data)
    : corners = toCorners(data['corners']),
      format = toFormat(data['format']),
      rawBytes = data['rawBytes'],
      rawValue = data['rawValue'],
      type = BarcodeType.values[data['type']],
      calendarEvent = toCalendarEvent(data['calendarEvent']),
      contactInfo = toContactInfo(data['contactInfo']),
      driverLicense = toDriverLicense(data['driverLicense']),
      email = toEmail(data['email']),
      geoPoint = toGeoPoint(data['geoPoint']),
      phone = toPhone(data['phone']),
      sms = toSMS(data['sms']),
      url = toUrl(data['url']),
      wifi = toWiFi(data['wifi']);