toJson method

Map<String, dynamic> toJson()

Implementation

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