prettifyGameAccounts function

List prettifyGameAccounts(
  1. dynamic data
)

Implementation

List prettifyGameAccounts(dynamic data) {
  var results = [];

  for (var i = 0; i < data.length; i++) {
    var a = data[i];
    results.add({
      'uid': int.parse(a['game_uid']),
      'server': a['region_name'],
      'level': a['level'],
      'nickname': a['nickname'],
      // idk what these are for:
      'biz': a['game_biz'],
      'is_chosen': a['is_chosen'],
      'is_official': a['is_official'],
    });
  }
  return results;
}