create static method

WhisperResponse create({
  1. String special_type = "whisperResponse",
  2. String? text,
  3. String? message,
})
override

return original data json

Implementation

static WhisperResponse create({

  String special_type = "whisperResponse",
  String? text,
  String? message,
})  {
  // WhisperResponse whisperResponse = WhisperResponse({
Map whisperResponse_data_create_json = {

    "@type": special_type,
    "text": text,
    "message": message,


};


        whisperResponse_data_create_json.removeWhere((key, value) => value == null);
WhisperResponse whisperResponse_data_create = WhisperResponse(whisperResponse_data_create_json);

return whisperResponse_data_create;



    }