BarcodeDriverLicenseDetailedInfo constructor

BarcodeDriverLicenseDetailedInfo(
  1. Map<String, dynamic> nativeDriverLicenseDetailedInfo
)

Implementation

BarcodeDriverLicenseDetailedInfo(
    Map<String, dynamic> nativeDriverLicenseDetailedInfo) {
  this.restrictions = nativeDriverLicenseDetailedInfo['restrictions'];
  this.endorsements = nativeDriverLicenseDetailedInfo['endorsements'];
  this.vehicleClass = nativeDriverLicenseDetailedInfo['vehicleClass'];
  this.conditions = nativeDriverLicenseDetailedInfo['conditions'];
  this.vehicleClassesInfo =
      nativeDriverLicenseDetailedInfo['vehicleClassesInfo'] != null
          ? List<BarcodeVehicleClassInfo>.from(
              nativeDriverLicenseDetailedInfo['vehicleClassesInfo']
                  .map((v) => BarcodeVehicleClassInfo(v)))
          : null;
}