toJson method
Implementation
Map<String, dynamic> toJson() {
final metadata = this.metadata;
final methodName = this.methodName;
final serviceName = this.serviceName;
return {
if (metadata != null) 'metadata': metadata,
if (methodName != null) 'methodName': methodName,
if (serviceName != null) 'serviceName': serviceName,
};
}