fromJsObject static method

Country? fromJsObject(
  1. IdentificationResultCountry? jsObject
)

Creates class instance from JavaScript object

Implementation

static Country? fromJsObject(IdentificationResultCountry? jsObject) {
  if (jsObject == null) {
    return null;
  }
  return Country(jsObject.code, jsObject.name);
}