toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UThreadgateAllow object
)

Implementation

@override
Map<String, dynamic> toJson(UThreadgateAllow object) => object.when(
      mentionRule: const MentionRuleConverter().toJson,
      followingRule: const FollowingRuleConverter().toJson,
      listRule: const ListRuleConverter().toJson,
      unknown: (data) => data,
    );