dataTo function

void dataTo(
  1. User user,
  2. dynamic dest
)

Implementation

void dataTo(User user, dynamic dest){
    if(user.metadata != ""){
      dest = jsonDecode(user.metadata);
    }
}