ChalonaResponse constructor

ChalonaResponse({
  1. MapType? source,
})

Implementation

ChalonaResponse({MapType? source}) : _source = MapType.from(source ?? {}) {
  if (_source.containsKey('data')) {
    _source['data'] = MapType.from(_source['data']);
  }
  if (_source.containsKey('lang')) {
    if (_source['lang'] is! String) {
      throw 'ChalonaResponse: lang debe ser tipo String';
    }

    // translateTo(lang);
  }
}