toJson method Null safety

String toJson()

Implementation

String toJson() {
  return "{"
      "\"id\":\"$id\","
      "\"localCreated\":\"$localCreated\","
      "\"localUpdated\":\"$localUpdated\","
      "\"apiBaseUrl\":\"$apiBaseUrl\","
      "\"keyHandle\":\"$keyHandle\","
      "\"state\":\"$state\","
      "\"created\":\"$created\","
      "\"updated\":\"$updated\","
      "\"tenant\":${tenant.toJson()},"
      "\"realm\":${realm.toJson()},"
      "\"identity\":${identity.toJson()},"
      "\"theme\":${theme.toJson()}}";
}