convertCustomInfoFromWebToDart static method

dynamic convertCustomInfoFromWebToDart(
  1. List customInfo
)

Implementation

static dynamic convertCustomInfoFromWebToDart(List customInfo) {
  final profileCustomInfo = {};
  for (var element in customInfo) {
    final mapElement = jsToMap(element);
    final customInfoKey = mapElement['key'].split('Tag_Profile_Custom_')[1];
    profileCustomInfo[customInfoKey] = mapElement['value'];
  }
  return profileCustomInfo;
}