toJson method Null safety

String toJson()

Implementation

String toJson() {
  return "{"
      "\"id\":\"$id\","
      "\"displayName\":\"$displayName\","
      "\"username\":\"$username\","
      "\"primaryEmailAddress\":\"$primaryEmailAddress\"}";
}