toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.wpId != null) {
    json[r'wpId'] = this.wpId;
  } else {
    json[r'wpId'] = null;
  }
  if (this.wpUserId != null) {
    json[r'wpUserId'] = this.wpUserId;
  } else {
    json[r'wpUserId'] = null;
  }
  if (this.wpPostId != null) {
    json[r'wpPostId'] = this.wpPostId;
  } else {
    json[r'wpPostId'] = null;
  }
  return json;
}