toJson method

Map<String, dynamic> toJson()

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,
  };
}