build method

  1. @override
Map<String, Object?> build()
override

Implementation

@override
Map<String, Object?> build() => {
      if (!identical(maxAge, sentinelDuration)) 'max_age': maxAge == null ? 0 : maxAge?.inSeconds,
      if (maxUses != null) 'max_uses': maxUses,
      if (isTemporary != null) 'temporary': isTemporary,
      if (isUnique != null) 'unique': isUnique,
      if (targetType != null) 'target_type': targetType!.value,
      if (targetUserId != null) 'target_user_id': targetUserId!.toString(),
      if (targetApplicationId != null) 'target_application_id': targetApplicationId!.toString(),
    };