fromJson static method

PassportElementDriverLicense? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static PassportElementDriverLicense? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return PassportElementDriverLicense(
    driverLicense: IdentityDocument.fromJson(
      tdMapFromJson(json['driver_license']),
    ),
  );
}