toJson method

Map<String, dynamic> toJson()

Implementation

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