getData method

Object? getData()

Implementation

Object? getData() {
  if(isEmpty) {
    return null;
  }
  var data = this['data']['response']['data'];
  if(data is List<dynamic> || data == null) {
    return null;
  }
  if((data as Map<String, dynamic>).containsKey('data')) {
    data = data['data'];
  }
  return data;
}