Country.fromJsObject constructor

Country.fromJsObject(
  1. dynamic jsObject
)

Creates class instance from JavaScript object

Implementation

Country.fromJsObject(dynamic jsObject)
    : code = jsObject.code,
      name = jsObject.name;