DriverLicenseDetailedInfo constructor

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

Implementation

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