create static method

UserHoverCardContext create({
  1. String special_type = "userHoverCardContext",
  2. String? message,
  3. String? octicon,
})
override

return original data json

Implementation

static UserHoverCardContext create({
  String special_type = "userHoverCardContext",
  String? message,
  String? octicon,
}) {
  // UserHoverCardContext userHoverCardContext = UserHoverCardContext({
  Map userHoverCardContext_data_create_json = {
    "@type": special_type,
    "message": message,
    "octicon": octicon,
  };

  userHoverCardContext_data_create_json
      .removeWhere((key, value) => value == null);
  UserHoverCardContext userHoverCardContext_data_create =
      UserHoverCardContext(userHoverCardContext_data_create_json);

  return userHoverCardContext_data_create;
}