toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var errorMessage = this.errorMessage;
  var i18nErrorMessage = this.i18nErrorMessage;

  final json = <String, Object?>{};
  if (errorMessage != null) {
    json[r'errorMessage'] = errorMessage;
  }
  if (i18nErrorMessage != null) {
    json[r'i18nErrorMessage'] = i18nErrorMessage.toJson();
  }
  return json;
}