toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'custom'] = this.custom;
  if (this.role != null) {
    json[r'role'] = this.role;
  } else {
    json[r'role'] = null;
  }
    json[r'user_id'] = this.userId;
  return json;
}