toJson method

Map<String, dynamic> toJson()

Implementation

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