toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final pid = this.pid;
  return {
    if (pid != null) 'pid': pid,
  };
}