toRpcJson method

  1. @override
JsonMap toRpcJson()
override

Implementation

@override
JsonMap toRpcJson() => {
      "fields": (fields != null
              ? fields!.where((e) => allowedFields.contains(e))
              : allowedFields)
          .map((e) => e.argName)
          .toList(),
      if (ids != null && ids!.isNotEmpty) "ids": ids!.toRpcJson(),
    };