Map<String, dynamic> toJson() => { "email": email, "name": name, "local_id": userId, if (data != null) "data": data, };